<template>
	<view>
		<view class="content">
			<image src="../../static/image 24 (1).png" mode=""></image>
			<view class="axiba">
				<input class="phone" placeholder-class="placeholder" type="text" v-model="phone"
					placeholder="请输入11位手机号">
				<text class="get-code" :style="{color: phone==''?'#BFBFBF':'#FB7A42'}">获取验证码</text>
			</view>
			<input type="text" placeholder-class="placeholder" v-model="code" class="code" placeholder="请输入6位验证码">
			<button class="no" v-if="phone==''||code==''">登录</button>
			<button class="yes" v-else @tap="toAddressTime">登录</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone: '',
				code: ''
			}
		},
		methods: {
			toAddressTime(){
				uni.navigateTo({
					url:"/pages/AddressTime/AddressTime"
				})
			}
		}
	}
</script>
<style lang="less">
	* {
		margin: 0;
		padding: 0;
		font-family: 'PingFang SC';
		font-style: normal;
		font-weight: 400;
		box-sizing: border-box;
	}

	.content {
		position: fixed;
		top: 56rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 640rpx;

		image {
			width: 320rpx;
			height: 190rpx;
		}

		.axiba {
			position: relative;
			width: 90%;

			.phone {
				position: absolute;
				left: 0;
				width: 100%;

			}

			.get-code {
				position: absolute;
				right: 0;
				top: 16px;
			}
		}

		input {
			height: 96rpx;
			font-size: 32rpx;
			border-bottom: 2rpx solid #BFBFBF;
		}

		.placeholder {
			color: #BFBFBF;
		}

		.code {
			width: 90%;
			margin-top: 20rpx;
		}

		button {
			width: 90%;
			height: 96rpx;
			line-height: 96rpx;
			background: #FB7A42;
			border-radius: 48rpx;
			font-size: 32rpx;
			color: #fff;
		}

		.no {
			opacity: 0.6;
		}

		.yes {
			opacity: 1;
		}
	}
</style>

